<%-- 
    Document   : FormDaftarDiterima
    Created on : Nov 17, 2012, 11:45:37 AM
    Author     : Yo
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="bean.ProsesBean"%>
<%@page import="Data.UserSekolah"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <title>Datfar Diterima</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet" type="text/css" />
        <link href="default.css" rel="stylesheet" type="text/css" media="all" />
    </head>
    <body style="margin: 0px;">
        <%
            String username = (String) session.getAttribute("user");
            if (username == null) {
                username = "";
            }
        %>
        <div id="header" class="container">
            <div id="logo">
                <h1><a href="#">Pendafataran SMA Negeri Online</a></h1>
                <p>Yogyakarta</a></p>
            </div>
        </div>
        <div id="menu" class="container">
            <ul>
                <li><a href="FormHomeSekolah.jsp" accesskey="1" title="">Home Sekolah</a></li>
                <li><a href="FormProfilSekolah.jsp" accesskey="1" title="">Profil</a></li>
                <li><a href="FormSeleksiSekolah.jsp" accesskey="2" title="">Seleksi</a></li>
                <li class="current_page_item"><a href="FormDaftarDiterima.jsp" accesskey="3" title="">Daftar diterima</a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
                <li><a href="#" accesskey="4" title=""></a></li>
      
                
                <li><a href="#" accesskey="4" title="">login as </a></li>
                <li><a href="#" accesskey="4" title=""><%=username%></a></li>
                <li><a href="logout.jsp" accesskey="5" title="">logout</a></li>
            </ul>
        </div>

        <div id="page" class="container">

            <div id="content">

                <table border="0" cellspacing="0" cellpadding="0" width="500">
                    <tr valign="top" align="left">
                        <td width="80" height="50"></td>
                        <td width="118"></td>
                    </tr>
                    <tr valign="top" align="left">
                        <td></td>
                        <td width="118" id="Text4" class="TextObject">
                            <%
                         try {
                             ProsesBean PK = new ProsesBean();%>
                            <table border="1" width="400">
                                <tr>
                                    <td><p> No Pendaftaran </p></td>
                                    <td><p> Nama </p></td>
                                    <td><p> Nilai </p></td>
                                </tr>
                                <%
                                    ResultSet temp = PK.daftarDiterimaSekolah(username);
                                    while (temp.next()) {
                                %>
                                <tr>
                                    <td><p><%=temp.getString(1)%></p></td>
                                    <td><p><%=temp.getString(2)%></p></td>
                                    <td><p><%=temp.getString(3)%></p></td>
                                </tr>
                                <%            }
                                %>
                            </table >

                            <%
                                } catch (Exception e) {
                                    e.getMessage();
                                }
                            %>
                        </td>
                    </tr>
                </table>
            </div>

        </div>
        <div id="footer">
            <p>Copyright (c) 2012 www.Vido_Dido.com </p>
        </div>
    </body>
</html>
